package com.li.springbootproject.controller.test;

import com.li.springbootproject.service.test.InsertTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 8/3/2022 8:44 AM
 */
@RequestMapping("/insert")
@RestController
public class InsertTestController {

    @Autowired
    private InsertTestService insertTestService;

    /**
     * 插入 md_org
     *
     * @return String
     */
    @RequestMapping(value = "/insertOne")
    public String insertOne() {
        return insertTestService.insertMdOrg();
    }

    /**
     * 插入 orgtemp
     *
     * @return String
     */
    @RequestMapping("/insertOrgTemp")
    public String insertThree() {
        return insertTestService.insertOrgTemp();
    }

    /**
     * 插入 table_class
     *
     * @return String
     */
    @RequestMapping("/insertTableClazz")
    public String insertFour() {
        return insertTestService.insertTableClazz();
    }
}
